#include <Arduino.h>
#include "ro635_server.hpp"
#include "motion_control.hpp"

using namespace ro635_server;

#define FREQ 50
#define MIN_US 500
#define MAX_US 2500
#define SERVO_PIN_PWM_1 13
#define SERVO_PIN_PWM_2 12
#define SERVO_PIN_PWM_3 14
#define SERVO_PIN_PWM_4 27

int degree_1 = 0;
int degree_2 = 60;
int degree_3 = 120;
int degree_4 = 180;

void setup()
{
    Serial.begin(9600);
    creatWebServer();
    initServo();
    Serial.println("初始化完成");
}

void loop()
{
    web_server.handleClient();
    delay(10);
}